﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProviderManage.aspx.cs"
    Inherits="GreatB2C.Web.Manage.Shop.ProviderManage" %>

<%@ Register Assembly="AspNetPager" Namespace="GreateB2C" TagPrefix="pager" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>供应商管理</title>
    <link href="../../../App_Themes/AdminDefaultTheme/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/index.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/xtree.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/MasterPage.css" type="text/css"
        rel="stylesheet" />

    <script type="text/javascript" src="../../../Resource/Script/pagebase.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <span style="height: 25px; line-height: 25px;"><span>
            <img src="../../../App_Themes/AdminDefaultTheme/Images/localGIF.gif" align="absmiddle"
                style="border-width: 0px;" />后台管理 </span><span>&gt;&gt; </span><span><a>商店管理</a></span><span>
                    &gt;&gt; </span><span><a>供应商管理</a></span></span>
    </div>
    <div>
        <table class="border" cellspacing="1" cellpadding="0" border="0" border="0" style="width: 100%;">
            <tr class="tdbg" align="center">
                <td valign="top">
                    <asp:DataGrid ID="dgList" CssClass="border" runat="server" Width="100%" HeaderStyle-VerticalAlign="Top"
                        AutoGenerateColumns="False" BorderWidth="0px" PageSize="15" AllowPaging="True"
                        OnItemDataBound="dgList_ItemDataBound" OnItemCommand="dgList_ItemCommand">
                        <PagerStyle Visible="False" />
                        <ItemStyle Height="25px" CssClass="tdbg" />
                        <Columns>
                            <asp:TemplateColumn>
                                <HeaderTemplate>
                                    <input type='checkbox' id='chkAll' name='chkAll' onclick='javascript:doCheckAll();' />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <input type='checkbox' id='chk_<%# DataBinder.Eval(Container, "DataItem.ProviderID") %>'
                                        name='chk_<%# DataBinder.Eval(Container, "DataItem.ProviderID") %>' onclick='javascript:doCheckSingle(<%# "\"" + DataBinder.Eval(Container, "DataItem.ProviderID") + "\"" %>)' />
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateColumn>
                            <asp:BoundColumn DataField="ProviderID" HeaderText="编号" Visible="false">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="ProviderName" HeaderText="名称">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="Inputer" HeaderText="录入者">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="InputTime" HeaderText="录入时间">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="Remark" HeaderText="备注">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:TemplateColumn HeaderText="操作">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtnUpdate" runat="server" CommandName="Update" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ProducerID") %>'>修改</asp:LinkButton>&nbsp;
                                    <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="Delete" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ProducerID") %>'>删除</asp:LinkButton>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="300px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateColumn>
                        </Columns>
                        <HeaderStyle VerticalAlign="Top" Height="25px" CssClass="gridtitle"></HeaderStyle>
                    </asp:DataGrid>
                    <asp:Literal ID="litNone" runat="server"></asp:Literal>
                </td>
            </tr>
            <tr class="tdbg" align="center">
                <td align="center">
                    <pager:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" PageSize="12"
                        Width="600px" OnPageChanged="AspNetPager1_PageChanged" ShowCustomInfoSection="Left"
                        CustomInfoSectionWidth="220px" ShowPageIndexBox="always" PageIndexBoxType="DropDownList"
                        CustomInfoHTML="第<font color='red'><b>%currentPageIndex%</b></font>页，共%PageCount%页，每页显示%PageSize%条记录"
                        FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页">
                    </pager:AspNetPager>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
